#include<iostream>
#include<pthread.h>
#include<unistd.h>

using namespace std;

void* MyPrint(void* arg)
{
   sleep(2);
   cout<<"hello world!!!,LWP: "<<pthread_self()<<endl;
   return 0;
}

 int main()
 {
   pthread_t pid=0;
   if(0!=pthread_create(&pid,nullptr,MyPrint,nullptr))
   {
      perror("pthread_create");
      exit(-1);
   }
   cout<<"ID :"<<pid<<endl;
   sleep(10);
    return 0;
 }